<template>
    <div class="weekend">
      <div class="weekend-title">周末去哪儿</div>
      <ul>
        <li class="weekend-item border-bottom" v-for="item in weekendList" :key="item.id">
          <div class="item-img-wrapper">
            <img class="item-img" :src="item.imgUrl" alt="">
          </div>
          <div class="item-info">
            <p class="item-title">{{item.title}}</p>
            <p class="item-desc">{{item.desc}}</p>
          </div>
        </li>
      </ul>
    </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    return {}
  }
}
</script>

<style lang="stylus" scoped>
  @import "~css/mixins.styl"
  .weekend-title
    font-size :0.3rem
    line-height: 0.8rem
    background :#eee
    margin-top: .2rem
    text-indent :.2rem
  .weekend-item
    /*height :1.9rem*/
    overflow :hidden
    font-size :.3rem
    .item-img-wrapper
      overflow :hidden
      height :0
      padding-bottom :37.09%
      .item-img
        width :100%
    .item-info
      font-size :0.3rem
      padding: .1rem
      .item-title
        line-height: .54rem
        ellipsis()
      .item-desc
        line-height: .4rem
        ellipsis()
        color #bbb
        font-size :0.24rem
</style>
